{include file="common/header"/}
<style>
    .layui-form-item .layui-input-inline{
        width: 500px;
    }
</style>
<div class="lemo-container">
    <div class="lemo-main">
        <fieldset class="layui-elem-field layui-field-title">
            <legend>{$title}</legend>
        </fieldset>
        <form class="layui-form layui-form-pane" lay-filter="form">

            <div class="layui-form-item">
                <label class="layui-form-label">题目名称</label>
                <div class="layui-input-inline">
                    <input type="text" name="title" lay-verify="required" placeholder="{:lang('pleaseEnter')}题目" class="layui-input">
                </div>
<!--                <div class="layui-form-mid layui-word-aux">-->
<!--                    在4到25个字符之间。-->
<!--                </div>-->
            </div>

            <div class="layui-form-item layui-form-text" style="width: 610px">
                <label class="layui-form-label">题目描述</label>
                <div class="layui-input-block">
                                    <textarea name="desc" class="layui-textarea"
                                              placeholder="描述"></textarea>
                </div>
            </div>

<!--            <div class="layui-form-item">-->
<!--                <label class="layui-form-label">题目名称</label>-->
<!--                <div class="layui-input-inline">-->
<!--                    <textarea type="text" name="username" lay-verify="required" placeholder="{:lang('pleaseEnter')}描述" >-->
<!--                </div>-->
<!--            </div>-->

            <div class="layui-form-item">
                <div class="layui-input-inline">
                    <input type="hidden" name="id"  >
                    <button type="button" class="layui-btn" lay-submit="" lay-filter="submit">{:lang('submit')}</button>
                    <a data-href="{:url('index')}" class="layui-btn layui-btn-primary back">{:lang('back')}</a>
                </div>
            </div>
        </form>
    </div>
</div>

{include file="common/footer"/}
<script>
    layui.config({
        base: "/static/admin/js/",
        version: true
    }).extend({
        Admin:'Admin',
    }).use(['Admin','form','laydate'], function () {
        var form = layui.form, laydate=layui.laydate ,$=layui.$;
        var info = '';
        //日期范围
        laydate.render({
            elem: '#date'
            ,range: true
        });

        info = {:json_encode($info)};
        form.val("form", info);
        if(info){
            $('#addPic').attr('src',info.avatar);
        }
        form.render();

    });
</script>